﻿<Window x:Class="Scarecrow_Network_Manager.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:properties="clr-namespace:Scarecrow_Network_Manager.Properties"
        Title="Scarecrow Network Manager" Height="480" Width="800" ResizeMode="CanResizeWithGrip" WindowStartupLocation="CenterScreen" Icon="/Scarecrow%20Network%20Manager;component/icon.ico" MinWidth="800" MinHeight="480" Background="Black" Loaded="Window_Loaded"
        FocusManager.FocusedElement="{Binding ElementName=txtFilter}" Closing="Window_Closing" >
        <Window.TaskbarItemInfo>
        <TaskbarItemInfo Description="Scarecrow Network Manager"></TaskbarItemInfo>
    </Window.TaskbarItemInfo>
    <Grid Focusable="False">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="96" />
            <ColumnDefinition Width="652*" />
            <ColumnDefinition Width="30*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="340*" />
            <RowDefinition Height="75" />
        </Grid.RowDefinitions>
        <Label Content="Versione" Grid.Column="1" Name="lblVersion" Foreground="SteelBlue" />
        <Rectangle Focusable="False" Grid.Column="1" Grid.RowSpan="3" Stroke="Gray" Margin="0,-1,-1,-1" Grid.ColumnSpan="2" />
        <StackPanel Focusable="False" Grid.Row="1" Name="spCommand">
            <Button Name="cmdAddProfile" Content="{x:Static properties:Resources.CreateProfile}" Tag="Images\System\add2.png" Focusable="False" Margin="0,0,0,5" Background="Black" Style="{DynamicResource TaskButton}" IsEnabled="True" Click="cmdAddProfile_Click" Height="75"/>
            <Button Name="cmdEditProfile" IsEnabled="False" Content="{x:Static properties:Resources.EditProfile}" Tag="Images\System\edit.png" Background="Black" Margin="0,0,0,3" Style="{StaticResource TaskButton}" Focusable="False" Height="75" Click="cmdEditProfile_Click"/>
            <Button Name="cmdRemoveProfile" IsEnabled="False" Content="{x:Static properties:Resources.DeleteProfile}" Tag="Images\System\delete2.png" Background="Black" Margin="0,0,0,3" Style="{StaticResource TaskButton}" Focusable="False" Height="75" Click="cmdRemoveProfile_Click"/>
            <Button Name="cmdRepair" Content="{x:Static properties:Resources.Repair}" Tag="Images\System\tools.png" Background="Black" Focusable="False" Style="{StaticResource TaskButton}" Height="75" Click="cmdRepair_Click"/>
        </StackPanel>
        <Button Name="cmdOptions" Content="{x:Static properties:Resources.Settings}" Tag="Images\System\setting.png" Background="Black" Grid.Row="2" Style="{StaticResource TaskButton}" Focusable="False" Click="cmdOptions_Click"/>
        <Rectangle Name="rectangle2" Stroke="Gray" Grid.ColumnSpan="3" Margin="-1,-1,0,0" />
        <ListView Focusable="False" KeyboardNavigation.DirectionalNavigation="Cycle" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Style="{StaticResource ProfilesBox}" Grid.Column="1" Grid.Row="1" Name="lstProfiles" SelectionMode="Single" Margin="20" SelectionChanged="lstProfiles_SelectionChanged" Grid.ColumnSpan="2"/>
        <Button Name="cmdActivateProfile" Visibility="Collapsed" Content="{x:Static properties:Resources.ActiveProfile}" Tag="Images\System\confirm.png" Style="{StaticResource TaskButton}" Grid.Column="1" Grid.Row="2" Focusable="False" Click="cmdActivateProfile_Click" Grid.ColumnSpan="2" HorizontalAlignment="Right" Width="82" Margin="0,0,10,0" />
        <StackPanel Focusable="False" Grid.Column="1" Grid.Row="2" Name="spInfo" Orientation="Horizontal" Margin="0,15" Visibility="Collapsed" Grid.ColumnSpan="2">
            <ProgressBar Focusable="False" Name="prgBar" Width="200" Height="20" Margin="10,0,0,0" Orientation="Horizontal" IsIndeterminate="False" />
            <Label Focusable="False" Name="lblInfo" Foreground="White" Margin="5"/>
        </StackPanel>
        <Button Grid.Column="2" Name="cmdUpdate" Background="Black" Visibility="Collapsed" Click="cmdUpdate_Click">
            <Image Source="Images\System\update.png" Stretch="Fill"/>
        </Button>
        <TextBox Name="txtFilter" Style="{StaticResource AutoHideTextBox}" Grid.Column="1" Width="120" Height="25" Margin="550,0,12,302" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.RowSpan="2" />
    </Grid>
</Window>
